Skip to content

TEL-730: Adding name-addr validation#1650

Merged
alexlivekit merged 2 commits into
mainfrom
alex/enable-soft-fail-sip
Jun 29, 2026
Merged

TEL-730: Adding name-addr validation#1650
alexlivekit merged 2 commits into
mainfrom
alex/enable-soft-fail-sip

Conversation

@alexlivekit

Copy link
Copy Markdown
Contributor

No description provided.

@alexlivekit alexlivekit requested a review from a team June 29, 2026 21:00
@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3bc65de

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
github.com/livekit/protocol Patch
@livekit/protocol Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@alexlivekit alexlivekit left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We definitely don't want to start off with strict erroring. This will allow us to at least log errors and understand the frequency and impact of something like this before customer start seeing failures.

Comment thread livekit/sip_validation.go
}
} else {
// This is a bare URI, and should comply with addr-spec, no special characters
if strings.ContainsAny(value, ";,? ") {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A semicolon here would mean that what's after that is header params, not the URI. However, it is still valid syntax

Comment thread livekit/sip_validation.go
Comment on lines +267 to +269
if cb := softFailureReporter; cb != nil {
cb(err)
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do } else { return err } here? Was considering it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we return error when we know the validation failed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because if some customers are using the system with invalid values today, we don't want to cause an outage when this lands. So we "soft-fail" first, allowing us to log the would-be errors for a while before we turn this on.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how would that be an outage since those calls are already failing.. 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would be enabling this check not just for refer messages.

@hechen-eng hechen-eng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have some comments, but nothing blocking

@alexlivekit alexlivekit merged commit e710c6f into main Jun 29, 2026
14 checks passed
@alexlivekit alexlivekit deleted the alex/enable-soft-fail-sip branch June 29, 2026 23:13
@github-actions github-actions Bot mentioned this pull request Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants